package org.wuxinshui.boosters.designPatterns.strategy.demo3;

import org.springframework.stereotype.Service;

@Service
public class AbstractContext extends BaseContext<Integer, AbstractHandler> {


    public void c(Params params) {
        AbstractHandler handler = getHandler(params.getId());
        System.out.println("AbstractContext Type1---c");
        handler.c();
    }


    public void r(Params params) {
        AbstractHandler handler = getHandler(params.getId());
        System.out.println("AbstractContext Type1---c");
        handler.r();
    }


    public void u(Params params) {
        AbstractHandler handler = getHandler(params.getId());
        System.out.println("AbstractContext Type1---c");
        handler.u();
    }


    public void d(Params params) {
        AbstractHandler handler = getHandler(params.getId());
        System.out.println("AbstractContext Type1---c");
        handler.d();
    }
}
